home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib43
/
mntlib
/
atol.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-22
|
365b
|
22 lines
/* As suggested by Harbison & Steele */
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
__EXTERN long strtol __PROTO((const char *, char **, int));
int atoi(str)
const char *str;
{
assert ((str != NULL));
return (int) strtol(str, (char **)0, 10);
}
long atol(str)
const char *str;
{
assert ((str != NULL));
return strtol(str, (char **)0, 10);
}